#include    "../Models/MMediaContent.h"

#ifndef CSOUNDS_H
#define CSOUNDS_H

class   CSounds:    public  QObject
{
    Q_OBJECT

private:
    static  QString song_name;
    static  MMediaContent   *background_playing;
    static  QList<Phonon::MediaObject *>  media_playing;
    static  QList<Phonon::AudioOutput *>  audio_playing;
    static  qreal   sounds_volume;
    static  bool    sounds_muted;
    static  qreal   background_volume;
    static  bool    background_muted;
    static  bool    is_set_muted;

public:
    static  void    play();
    static  void    play(QString url);
    static  void    play_sound(QString url);
    static  int     play_pause();
    static  void    pause();
    static  void    stop();
    static  void    stop_all();
    static  void    clear_background_playing();
    static  void    mute_background();
    static  void    mute_sounds();
    static  void    mute();
    static  void    update_background_volume(qreal volume);

    friend  MMediaContent::MMediaContent(QString url);
    friend  void    MMediaContent::stop_sound();
    friend  class   VSounds;
    friend  class   VSettings;
    friend  class   CSettings;
};

#endif // CSOUNDS_H
